//
//  RecommendColHeader.swift
//  DouYuZB
//
//  Created by 中创 on 2020/4/22.
//  Copyright © 2020 梁森. All rights reserved.
//

import UIKit

class RecommendColHeader: BaseCollectionReusableView {

    @IBOutlet weak var titleLbl: UILabel!
    
    @IBOutlet weak var iconView: UIImageView!
    
    @IBOutlet weak var moreBtn: UIButton!
    var anchorGroup:AnchorGroup?{
        didSet{
            guard let tag_name = anchorGroup?.tag_name else{return}
            titleLbl.text = tag_name
            iconView.image = UIImage(named: anchorGroup?.icon_name ?? "")
        }
    }
    
    class func recommendColHeader()->RecommendColHeader{
        return Bundle.main.loadNibNamed("RecommendColHeader", owner: nil, options: nil)?.first as! RecommendColHeader
    }
}
